﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.Rendering.CompareFunction
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using UnityEngine.Bindings;

#nullable disable
namespace UnityEngine.Rendering
{
  /// <summary>
  ///   <para>Depth or stencil comparison function.</para>
  /// </summary>
  [NativeHeader("Runtime/GfxDevice/GfxDeviceTypes.h")]
  public enum CompareFunction
  {
    /// <summary>
    ///   <para>Depth or stencil test is disabled.</para>
    /// </summary>
    Disabled,
    /// <summary>
    ///   <para>Never pass depth or stencil test.</para>
    /// </summary>
    Never,
    /// <summary>
    ///   <para>Pass depth or stencil test when new value is less than current value.</para>
    /// </summary>
    Less,
    /// <summary>
    ///   <para>Pass depth or stencil test when values are equal.</para>
    /// </summary>
    Equal,
    /// <summary>
    ///   <para>Pass depth or stencil test when new value is less or equal than current value.</para>
    /// </summary>
    LessEqual,
    /// <summary>
    ///   <para>Pass depth or stencil test when new value is greater than current value.</para>
    /// </summary>
    Greater,
    /// <summary>
    ///   <para>Pass depth or stencil test when values are different.</para>
    /// </summary>
    NotEqual,
    /// <summary>
    ///   <para>Pass depth or stencil test when new value is greater or equal than current value.</para>
    /// </summary>
    GreaterEqual,
    /// <summary>
    ///   <para>Always pass depth or stencil test.</para>
    /// </summary>
    Always,
  }
}
